j=0
while j<5:
    n=0
    while n<5:
        if j<1 or j==x:
            print("*",end="")
        elif n==0 or n==y:
            print("*",end="")
        else:
            print(" ",end="")
        n+=1
    j+=1
    print()
